home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / monitor / newdirec.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-01-23  |  316 b   |  23 lines

  1. # include    "monitor.h"
  2. # include    <ingres.h>
  3. # include    <aux.h>
  4. # include    <sccs.h>
  5.  
  6. SCCSID(@(#)newdirec.c    8.1    12/31/84)
  7.  
  8.  
  9.  
  10. /*
  11. **  CHANGE WORKING DIRECTORY
  12. */
  13.  
  14. newdirec()
  15. {
  16.     register char    *direc;
  17.     extern char    *getfilenm();
  18.  
  19.     direc = getfilenm();
  20.     if (chdir(direc))
  21.         printf("Cannot access directory \"%s\"\n", direc);
  22. }
  23.